#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSplitter>
#include <QVector>
#include "../common/EdlParser.h"
#include "../common/Entity.h"
#include "Viewer.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    Ui::MainWindow *ui;
    QSplitter *splitter;
    QVector<Entity> *objects;
    EdlParser *parser;
    Viewer *viewer;
    int selectedId;


protected:
    void openFile(QString);
    void saveFile(QString);
    void refresh();

protected slots:
    void openFile();
    void saveFile();
    void selectObject();
    void updateObject();
    void deleteObject();
    void newObject();
    void newFile();
    void updateType();
    void copyObject();

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
};

#endif // MAINWINDOW_H
